package com.ruoyi.task.mapper;

import com.ruoyi.task.domain.TaskSub;
import com.ruoyi.task.domain.dto.TaskInfoDTO;
import com.ruoyi.task.domain.vo.TaskInfoVO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TaskSubMapper {
    @Insert("INSERT INTO  user_task_submissions(student_id, task_id, file_path, submission_time) VALUES " +
            "(#{studentId},#{taskId},#{filePath},#{submissionTime})")
    int subTask(TaskSub taskSub);

    List<TaskInfoVO> seletInfoList(TaskInfoDTO taskInfoVO);

    List<TaskInfoVO> seletByIds(List<Integer> ids);
}
